Badgerati/Edison

View on GitHub

Showing 215 of 215 total issues

Method GetTestFixtures has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

            Assembly assembly,
            IList<string> includedCategories,
            IList<string> excludedCategories,
            IList<string> fixtures,
            IList<string> tests,
Severity: Minor
Found in Edison.Engine/Repositories/AssemblyRepository.cs - About 45 mins to fix

    Method GetTestCount has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

                Assembly assembly,
                IList<string> includedCategories,
                IList<string> excludedCategories,
                IList<string> fixtures,
                IList<string> tests,
    Severity: Minor
    Found in Edison.Engine/Repositories/AssemblyRepository.cs - About 45 mins to fix

      Method GetTestFixtures has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

                  Assembly assembly,
                  IList<string> includedCategories,
                  IList<string> excludedCategories,
                  IList<string> fixtures,
                  IList<string> tests,
      Severity: Minor
      Found in Edison.Engine/Repositories/Interfaces/IAssemblyRepository.cs - About 45 mins to fix

        Method GetTestCount has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                    Assembly assembly,
                    IList<string> includedCategories,
                    IList<string> excludedCategories,
                    IList<string> fixtures,
                    IList<string> tests,
        Severity: Minor
        Found in Edison.Engine/Repositories/Interfaces/IAssemblyRepository.cs - About 45 mins to fix

          Method GetTests has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                      Assembly assembly,
                      IList<string> includedCategories,
                      IList<string> excludedCategories,
                      IList<string> fixtures,
                      IList<string> tests,
          Severity: Minor
          Found in Edison.Engine/Repositories/AssemblyRepository.cs - About 45 mins to fix

            Method PopulateTestResult has 6 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                    private TestResult PopulateTestResult(MethodInfo testMethod, TestResult result, TestResultState state, TimeSpan time, string errorMessage = "", string stackTrace = "")
            Severity: Minor
            Found in Edison.Engine/Threading/TestThread.cs - About 45 mins to fix

              Method GetTests has 6 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                          Assembly assembly,
                          IList<string> includedCategories,
                          IList<string> excludedCategories,
                          IList<string> fixtures,
                          IList<string> tests,
              Severity: Minor
              Found in Edison.Engine/Repositories/Interfaces/IAssemblyRepository.cs - About 45 mins to fix

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                        [Test]
                        public void ValidFixtureTest()
                        {
                            var fixture = "this.is.some.fixture";
                            
                Severity: Minor
                Found in Edison.Engine.Test/Contexts/ContextValidatorTests.cs and 1 other location - About 40 mins to fix
                Edison.Engine.Test/Contexts/ContextValidatorTests.cs on lines 312..321

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 72.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                        [Test]
                        public void ValidTestTest()
                        {
                            var test = "this.is.some.test";
                            
                Severity: Minor
                Found in Edison.Engine.Test/Contexts/ContextValidatorTests.cs and 1 other location - About 40 mins to fix
                Edison.Engine.Test/Contexts/ContextValidatorTests.cs on lines 258..267

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 72.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                        public virtual IAssert FileExists(string path, string message = null)
                        {
                            if (!File.Exists(path))
                            {
                                throw new AssertException(ExpectedActualMessage(message, "File exists: ", path, null, null, "File does not exist", null));
                Severity: Minor
                Found in Edison.Framework/Asserts/Assert.cs and 1 other location - About 40 mins to fix
                Edison.Framework/Asserts/Assert.cs on lines 343..351

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 71.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                        public virtual IAssert DirectoryExists(string path, string message = null)
                        {
                            if (!Directory.Exists(path))
                            {
                                throw new AssertException(ExpectedActualMessage(message, "Directory exists: ", path, null, null, "Directory does not exist", null));
                Severity: Minor
                Found in Edison.Framework/Asserts/Assert.cs and 1 other location - About 40 mins to fix
                Edison.Framework/Asserts/Assert.cs on lines 319..327

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 71.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                        public virtual IAssert DirectoryDoesNotExists(string path, string message = null)
                        {
                            if (Directory.Exists(path))
                            {
                                throw new AssertException(ExpectedActualMessage(message, "Directory does not exists: ", path, null, null, "Directory exists", null));
                Severity: Minor
                Found in Edison.Framework/Asserts/Assert.cs and 1 other location - About 40 mins to fix
                Edison.Framework/Asserts/Assert.cs on lines 329..337

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 69.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                        public static TestResultState[] Errors
                        {
                            get
                            {
                                if (_errors == default(TestResultState[]))
                Severity: Minor
                Found in Edison.Framework/Enums/TestResultState.cs and 1 other location - About 40 mins to fix
                Edison.Framework/Enums/TestResultState.cs on lines 84..101

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 69.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                        public virtual IAssert FileDoesNotExist(string path, string message = null)
                        {
                            if (File.Exists(path))
                            {
                                throw new AssertException(ExpectedActualMessage(message, "File does not exist: ", path, null, null, "File exists", null));
                Severity: Minor
                Found in Edison.Framework/Asserts/Assert.cs and 1 other location - About 40 mins to fix
                Edison.Framework/Asserts/Assert.cs on lines 353..361

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 69.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                        public static TestResultState[] Failures
                        {
                            get
                            {
                                if (_failures == default(TestResultState[]))
                Severity: Minor
                Found in Edison.Framework/Enums/TestResultState.cs and 1 other location - About 40 mins to fix
                Edison.Framework/Enums/TestResultState.cs on lines 64..81

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 69.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                            if (!EnumerableHelper.IsNullOrEmpty(excludedCategories) && categories.Any(c => excludedCategories.Any(e => e.Equals(c.Name, StringComparison.InvariantCultureIgnoreCase))))
                            {
                                return false;
                            }
                Severity: Minor
                Found in Edison.Engine/Repositories/ReflectionRepository.cs and 1 other location - About 40 mins to fix
                Edison.Engine/Repositories/ReflectionRepository.cs on lines 198..201

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 68.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                            if (!EnumerableHelper.IsNullOrEmpty(includedCategories) && categories.Any(c => includedCategories.Any(i => i.Equals(c.Name, StringComparison.InvariantCultureIgnoreCase))))
                            {
                                return true;
                            }
                Severity: Minor
                Found in Edison.Engine/Repositories/ReflectionRepository.cs and 1 other location - About 40 mins to fix
                Edison.Engine/Repositories/ReflectionRepository.cs on lines 204..207

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 68.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Method ExpectUrl has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                        IAssert ExpectUrl(IBrowser browser, string expectedUrl, int attempts = 10, bool startsWith = false, string message = null);
                Severity: Minor
                Found in Edison.Framework/Asserts/IAssert.cs - About 35 mins to fix

                  Method GetMethods has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                          IEnumerable<MethodInfo> GetMethods<T>(Type type,
                              IList<string> includedCategories = default(List<string>),
                              IList<string> excludedCategories = default(List<string>),
                              IList<string> tests = default(List<string>),
                              string suite = null) where T : Attribute;
                  Severity: Minor
                  Found in Edison.Engine/Repositories/Interfaces/IReflectionRepository.cs - About 35 mins to fix

                    Method RunTestCases has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                            private void RunTestCases(MethodInfo test, IEnumerable<TestCaseAttribute> cases, int testRepeat, IEnumerable<MethodInfo> setup, IEnumerable<MethodInfo> teardown)
                    Severity: Minor
                    Found in Edison.Engine/Threading/TestThread.cs - About 35 mins to fix
                      Severity
                      Category
                      Status
                      Source
                      Language